import apiCreator from '../../utils/apiCreator';
import config from '../../utils/config';
const api = apiCreator();
export default {
  //根据产品组查询组合树
  queryPortfolioList: (query) => api.get(`${config.interfaces.type5}portfolio-server/product-group/list-with-all-element`, query),
  //拆分保存（理财直融、债券、非标）
  splitSave1: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/manualSplit1`, query),
  //拆分保存（银行间回购）
  splitSave2: (query) => api.post(`${config.interfaces.type1}productGroupTradeInstruction/manualSplit2`, query),
  //查询详情理财直融、债券、非标）
  querySplitTableList1: (query) => api.get(`${config.interfaces.type1}productGroupTradeInstruction/getSplitTable1`, query),
  //查询详情 （银行间回购）
  querySplitTableList2: (query) => api.get(`${config.interfaces.type1}productGroupTradeInstruction/getSplitTable2`, query),
  //批量查询资金
  queryFundList: (query) => api.post(`${config.interfaces.type5}inventoryManagement-server/api/v2/inventory/management/financing/queryFundList`, query),
  //批量查询持仓
  queryPositongList: (query) => api.post(`${config.interfaces.type5}inventoryManagement-server/api/v2/inventory/management/holdInfo/queryPositongList`, query),
  //融资回购拆分 查询表格信息
  getBuyBackInfo: (query) => api.get(`${config.interfaces.type1}productGroupTradeInstruction/getBuyBackInfo`, query),
};
